package com.lx.yygh.common.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 柳新宽
 * @create 2022-10-27  20:28
 * @describe
 */
@Configuration
public class MQConfig {
    @Bean
    public MessageConverter messageConverter(){
        //数据库的转换
        return new Jackson2JsonMessageConverter();
    }
}